package ve.usb.ddp.hibernate;

import ve.usb.cohesion.runtime.LocalDate;

public class PaiDesincorporacion implements java.io.Serializable, ve.usb.cohesion.runtime.Auditable {

    /** Creates a new instance of PaiDesincorporacion */
    public PaiDesincorporacion() {}
    
    /**
     * Holds value of property id.
     */
    private Long id;

    /**
     * Getter for property id.
     * @return Value of property id.
     */
    public Long getId() {
        return this.id;
    }

    /**
     * Holds value of property idPaiDesincorporacion.
     */
    private long idPaiDesincorporacion;

    /**
     * Getter for property idPaiDesincorporacion.
     * @return Value of property idPaiDesincorporacion.
     */
    public long getIdPaiDesincorporacion() {
        return this.idPaiDesincorporacion;
    }

    /**
     * Setter for property idPaiDesincorporacion.
     * @param idPaiDesincorporacion New value of property idPaiDesincorporacion.
     */
    public void setIdPaiDesincorporacion(long idPaiDesincorporacion) {
        this.id = this.idPaiDesincorporacion = idPaiDesincorporacion;
    }

    /**
     * Holds value of property resolucion.
     */
    private PaiResolucion resolucion;

    /**
     * Getter for property resolucion.
     * @return Value of property resolucion.
     */
    public PaiResolucion getResolucion() {
        return this.resolucion;
    }

    /**
     * Setter for property resolucion.
     * @param resolucion New value of property resolucion.
     */
    public void setResolucion(PaiResolucion resolucion) {
        this.resolucion = resolucion;
    }
    /**
     * Holds value of property fecha.
     */
    private java.util.Date fecha;

    /**
     * Getter for property fecha.
     * @return Value of property fecha.
     */
    public java.util.Date getFecha() {
        return this.fecha;
    }

    /**
     * Setter for property fecha.
     * @param fecha New value of property fecha.
     */
    public void setFecha(java.util.Date fecha) {
        if (fecha==null || fecha instanceof LocalDate)
            this.fecha = fecha;
        else this.fecha = new LocalDate(fecha);
    }

    /**
     * Holds value of property razon.
     */
    private String razon = "";

    /**
     * Getter for property razon.
     * @return Value of property razon.
     */
    public String getRazon() {
        return this.razon;
    }

    /**
     * Setter for property razon.
     * @param razon New value of property razon.
     */
    public void setRazon(String razon) {
        this.razon = razon;
    }




    public String toString() {
        return "<PaiDesincorporacion id='C" + this.id +
      //idPaiDesincorporacion
        ((resolucion==null) ? "" : "\" resolucion =\"C" + resolucion.getId()) +

      "\" fecha =\"" + fecha +
      "\" razon =\"" + razon +

        "'/>";
    }

}